#Include <ScreenCapture.au3>
#Include <Function For Thumbnail View.au3>
#Include <Clipboard.au3>


AutoItSetOption("MustDeclareVars", 1)   ;Variables must be pre-declared.
Dim Const $sLogFileName =  "Thumbnail view2.Log"   ;Log file named(Same with .au3 file name).

Common_WriteCurrentFunctionNameToTempTXT($sThumbanilViewFunctionName)

Dim $bDebug = False

If Not $bDebug Then
	ThumbnailView15_1_1()
	ThumbnailView15_1_2()
	ThumbnailView15_1_3()
	ThumbnailView15_2_1()
	ThumbnailView15_7_1()
	ThumbnailView15_8_2()
	If Not $bPageViewType Then
		ThumbnailView16_1_1()
		ThumbnailView16_2_1()
	EndIf
	ThumbnailView16_1_3()
	ThumbnailView16_1_4()
	ThumbnailView16_1_5()
	ThumbnailView16_3_1()
	ThumbnailView17_1_1()
	ThumbnailView17_1_2()
	ThumbnailView18_1_1()
	ThumbnailView18_1_2()
	ThumbnailView18_2_1()
	ThumbnailView18_3_1()
	ThumbnailView18_3_2()
	ThumbnailView18_4_1()
	ThumbnailView18_4_2()
	ThumbnailView18_5_1()
	ThumbnailView18_5_2()
	ThumbnailView19_1_1()
	ThumbnailView19_1_2()
	ThumbnailView19_1_3()
	ThumbnailView19_1_4()
	ThumbnailView19_1_5()
	ThumbnailView19_1_6()
	ThumbnailView19_2_1()
	ThumbnailView19_2_7()
	ThumbnailView19_3_1()
	ThumbnailView19_3_2()
	ThumbnailView19_3_3()
	ThumbnailView19_3_4()
	ThumbnailView19_3_5()
	ThumbnailView19_3_6()
	ThumbnailView19_4_1()
	ThumbnailView19_4_2()
	ThumbnailView19_5_1()
	ThumbnailView19_5_2()
	ThumbnailView19_6_3()
	ThumbnailView19_7_1()
	ThumbnailView20_1_2()
	ThumbnailView20_1_3()
	ThumbnailView20_1_7()
	ThumbnailView20_2_2()
	ThumbnailView20_2_4()
	ThumbnailView20_2_7()
	ThumbnailView20_2_8()
	ThumbnailView20_3_2()
	ThumbnailView20_3_3()
	ThumbnailView20_3_5()
	ThumbnailView20_3_6()
	ThumbnailView20_4_1()
	ThumbnailView20_5_1()
	ThumbnailView20_5_2()
	ThumbnailView20_6_1()
	ThumbnailView20_8_1()
	ThumbnailView20_8_2()
	ThumbnailView20_9_1()
	ThumbnailView21_3_1()
	ThumbnailView21_3_2()
	ThumbnailView21_3_3()
	ThumbnailView21_5_1()
	ThumbnailView21_5_3()
	ThumbnailView21_7_1()
	ThumbnailView21_8_1()
	ThumbnailView22_1_2()
	ThumbnailView22_2_1()
	ThumbnailView22_2_3()
	ThumbnailView22_2_6()
	ThumbnailView22_2_7()
	ThumbnailView22_2_12()
	ThumbnailView22_3_1()
	ThumbnailView22_3_2()
	ThumbnailView22_3_5()
	ThumbnailView22_5_9()
	ThumbnailView22_5_11()
	ThumbnailView22_5_13()
	ThumbnailView22_5_15()
	ThumbnailView22_5_16()
	ThumbnailView22_5_17()
	ThumbnailView22_5_18()
	ThumbnailView22_5_21()
	ThumbnailView22_6_2()
	ThumbnailView22_6_4()
	ThumbnailView22_6_5()
	ThumbnailView22_7_1()
	ThumbnailView22_8_1()
	ThumbnailView22_9_1()
	ThumbnailView22_10_1()
	ThumbnailView23_1_1()
	ThumbnailView23_1_2()
	ThumbnailView23_2_1()
	ThumbnailView23_2_2()
	ThumbnailView23_2_3()
	ThumbnailView23_2_4()
	ThumbnailView23_2_5()
	ThumbnailView23_3_2()
	ThumbnailView23_3_3()
	ThumbnailView23_3_4()
	ThumbnailView23_3_5()
	ThumbnailView23_5_1()
	ThumbnailView23_6_1()
	ThumbnailView23_7_1()
	ThumbnailView24_2_2()
	ThumbnailView25_2_1()
	ThumbnailView25_2_2()
	ThumbnailView25_2_3()
	ThumbnailView25_2_4()
	ThumbnailView25_2_6()
	ThumbnailView25_3_1()
	ThumbnailView26_1_1()
	ThumbnailView26_1_5()
	ThumbnailView26_1_6()
	ThumbnailView26_1_7()
	ThumbnailView26_1_8()
	ThumbnailView26_2_1()
	ThumbnailView26_3_1()
	ThumbnailView26_3_3()
	ThumbnailView26_3_7()
	ThumbnailView26_4_1()
	ThumbnailView26_4_3()
	ThumbnailView26_4_7()
	ThumbnailView26_5_2()
	ThumbnailView26_13_5()
	ThumbnailView26_15_1()
	ThumbnailView26_16_1()
EndIf

CloseOpenedExcel($oExcel)

Func ThumbnailView15_1_1()
	Local $TestCaseID = "15.1.1" 
	$sCusMsg = 'The File PSD is in first postion in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	MouseMove(391, 369)
	MouseDown("left")
	Sleep(300)
	MouseMove(202, 272)
	Sleep(300)
	MouseUp("left")
	Common_SleepTime(1)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView15_1_2()
	Local $TestCaseID = "15.1.2"  
	$sCusMsg = 'The File JPG is in last postion in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
		Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	MouseMove(426, 166)
	MouseDown("left")
	Sleep(300)
	MouseMove(903, 356)
	Sleep(300)
	MouseUp("left")
	Common_SleepTime(1)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView15_1_3()
	Local $TestCaseID = "15.1.3"
	$sCusMsg = 'The File JPG and Miti_Tif in middle postion in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	MouseMove(426, 166)
	MouseDown("left")
	Sleep(300)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,3)
	MouseMove(1180, 166)
	Sleep(300)
	MouseUp("left")
	Common_SleepTime(1)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView15_2_1()
	Local $TestCaseID = "15.2.1" 
	$sCusMsg = 'The file JPG- Copy in thumbnail'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	CopySampleFile()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)	
	MouseMove(426, 166)
	MouseDown("left")
	Send("{CTRLDOWN}")
	Sleep(300)
	MouseMove(903, 356)
	Sleep(300)
	MouseUp("left")
	Send("{CTRLUP}")
	Common_SleepTime(1)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If FileExists ('C:\Thumbnail view\JPG - Copy.jpg') Then
	;If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView15_3_1()
	Local $TestCaseID = "15.3.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $posTreeView = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	Local $hTreeViewHandle = ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Local $posThumbnailView = ControlGetPos($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $hThumbnailViewHandle = ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#0")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#0|#0")
	Common_SleepTime() 
	MouseClickDrag("left",$posThumbnailView[0]+240,$posThumbnailView[1]+60,55,440)
	Common_SleepTime(2)	
	Local $hItemFound = _GUICtrlTreeView_FindItem($hTreeViewHandle, "Desktop")
	_GUICtrlTreeView_ClickItem($hTreeViewHandle,$hItemFound)
	_GUICtrlTreeView_SelectItem($hTreeViewHandle,$hItemFound)
	Common_SleepTime(2)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailViewHandle)
	Common_SleepTime(2)	
	Local $CaptureCompareResult = Common_CompareFile ($sTestResultPath&$sCaptureImage, $sCorrectResultPath&$sCaptureImage)  
	Local $strPath = GetLayerPath(@MyDocumentsDir)
	If $CaptureCompareResult Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		FileDelete(@DesktopDir&"\BizCard 6.pdf")
		Return 1   
	EndIf
	Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	FileDelete(@DesktopDir&"\BizCard 6.pdf")
	Return 0 
EndFunc

Func ThumbnailView15_3_2()
	Local $TestCaseID = "15.3.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $posTreeView = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	Local $hTreeViewHandle = ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Local $posThumbnailView = ControlGetPos($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $hThumbnailViewHandle = ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Common_SleepTime() 
	MouseMove($posThumbnailView[0]+240,$posThumbnailView[1]+60)
	MouseDown("left")
	Send("{CTRLDOWN}")
	Sleep(300)
	MouseMove(55,440)
	Sleep(300)
	MouseUp("left")
	Send("{CTRLUP}")
	Common_SleepTime(2)	
	Local $hItemFound = _GUICtrlTreeView_FindItem($hTreeViewHandle, "My Music")
	_GUICtrlTreeView_ClickItem($hTreeViewHandle,$hItemFound)
	Common_SleepTime(2)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailViewHandle)
	Common_SleepTime(2)	
	Local $CaptureCompareResult = Common_CompareFile ($sTestResultPath&$sCaptureImage, $sCorrectResultPath&$sCaptureImage)  
	Local $strPath = GetLayerPath(@MyDocumentsDir)
	If $CaptureCompareResult Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		FileDelete(@DesktopDir&"\BizCard 6.pdf")
		Return 1   
	EndIf
	Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	FileDelete(@DesktopDir&"\BizCard 6.pdf")
	Return 0 
EndFunc

Func ThumbnailView15_3_4()
	Local $TestCaseID = "15.3.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $strPath = GetLayerPath(@MyDocumentsDir)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $posTreeView = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	Local $hTreeViewHandle = ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Local $posThumbnailView = ControlGetPos($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $hThumbnailViewHandle = ControlGetHandle($hPMHandle,"",$sThumbnailViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Common_SleepTime() 
	MouseClickDrag("left",$posThumbnailView[0]+240,$posThumbnailView[1]+60,$posTreeView[0]+120,$posTreeView[1]+130)
	Common_SleepTime(6)	
	If WinExists($MoveFileMessageTitle) Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $MoveFileMessageTitle)
		Common_SleepTime(2)	
		Local $CaptureCompareResult = Common_CompareFile ($sTestResultPath&$sCaptureImage, $sCorrectResultPath&$sCaptureImage)  
		If $CaptureCompareResult Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		EndIf
		Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0 
	ElseIf WinExists('[Class:#32770]', '&Yes' ) Then
		WinActivate('[Class:#32770]', '&Yes')
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, '[Class:#32770]')
		Common_SleepTime(2)	
		Local $CaptureCompareResult = Common_CompareFile ($sTestResultPath&$sCaptureImage, $sCorrectResultPath&$sCaptureImage)  
		If $CaptureCompareResult Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		EndIf
		Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
		
	Else
		Common_WriteLog($sFaile&$sFailLogMsg, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		FileDelete($strPath&"Music\BizCard 6.pdf")
		Return 0
	EndIf
EndFunc

Func ThumbnailView15_7_1()
	Local $TestCaseID = "15.7.1" 
	$sCusMsg = 'document pallet has one file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	MouseClick('left',1268, 946)    ;Open document pallet.
	Common_SleepTime(2)	
	MouseMove(426, 166)
	MouseDown("left")
	Sleep(300)
	MouseMove(282, 879)
	Sleep(300)
	MouseUp("left")
	Common_SleepTime(2)	
	Local $hDocumentPallet = ControlGetHandle($hPMHandle, "", $DocumentPallet)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hDocumentPallet)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView15_8_2()
	Local $TestCaseID = "15.8.2" 
	$sCusMsg = 'The file JPG -Copy in list view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	CopySampleFile()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	MouseMove(274, 129)
	MouseDown("left")
	Send("{CTRLDOWN}")
	Sleep(300)
	MouseMove(266, 275)
	Sleep(300)
	MouseUp("left")
	Send("{CTRLUP}")
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	Common_SleepTime(1)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If FileExists ('C:\Thumbnail view\JPG - Copy.jpg') Then
	;If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView16_1_1()
	Local $TestCaseID = "16.1.1" 
	$sCusMsg = 'The image is page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True, 2, 1) 
	OpenWith("PageManager")
	Local $hPageView = ControlGetHandle($hPMHandle, "", $sPageViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hPageView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView16_1_3()
	Local $TestCaseID = "16.1.3"  
	$sCusMsg = 'The image is page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'DOC.doc', $sFunctionFolderPath, 1) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True, 2, 1) 
	OpenWith("PageManager")
	Local $hPageView = ControlGetHandle($hPMHandle, "", $sPageViewCtrInfo)
	MouseClickDrag('left', 423, 275,423, 275)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hPageView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView16_1_4()
	Local $TestCaseID = "16.1.4"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'DOC.doc', $sFunctionFolderPath, 1) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True, 2, 1) 
	OpenWith("Associated AP")
	If ProcessExists('WINWORD.EXE') Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		ProcessClose('WINWORD.EXE')
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	ProcessClose('WINWORD.EXE')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView16_1_5()
	Local $TestCaseID = "16.1.5"
	$sCusMsg = 'The image is page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True, 2, 1) 
	WinWaitActive($PreferenceDialogTitle, '', 10)
	WinActivate($PreferenceDialogTitle)
	ControlClick($PreferenceDialogTitle, '', $AlwaysOpenByThisWay)
	Common_SleepTime(1)
	OpenWith("PageManager")
	Local $hPageView = ControlGetHandle($hPMHandle, "", $sPageViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hPageView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView16_1_6()
	Local $TestCaseID = "16.1.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'EXE.exe', $sFunctionFolderPath, 1) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True, 2, 1) 
	Common_SleepTime(10)
	If ProcessExists("PMVIEW.EXE") Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		ProcessClose("PMVIEW.EXE")
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	ProcessClose("PMVIEW.EXE")
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView16_2_1()
	Local $TestCaseID = "16.2.1" 
	$sCusMsg = 'The image is page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)	
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True, 2, 1) 
	OpenWith("PageManager")
	Local $hPageView = ControlGetHandle($hPMHandle, "", $sPageViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hPageView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView16_3_1()
	Local $TestCaseID = "16.3.1" 
	$sCusMsg = 'The image is page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)	
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)	
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True, 2, 1) 
	OpenWith("PageManager")
	Local $hPageView = ControlGetHandle($hPMHandle, "", $sPageViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hPageView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_1_1()
	Local $TestCaseID = "17.1.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	OpenMenu("Edit")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_1_2()
	Local $TestCaseID = "17.1.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	MouseClick('Right', 728,502)
	Common_SleepTime(2)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_2_6()
	Local $TestCaseID = "17.2.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^x")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_2_8()
	Local $TestCaseID = "17.2.8"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SleepTime(16)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,3)
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)		
	Send("^x")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_2_10()
	Local $TestCaseID = "17.2.10" 
	$sCusMsg = 'No copy file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)	
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^x")
	Send("^v")
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_3_1()
	Local $TestCaseID = "17.3.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True) 
	Common_SleepTime(2)
	Send($CutContextMenu)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_3_2()
	Local $TestCaseID = "17.3.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(2)
	CutFormEditMenu()
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	PasteFormEditMenu()
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_4_1()
	Local $TestCaseID = "17.4.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^x")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	UndoFromEditMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_4_2()
	Local $TestCaseID = "17.4.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^x")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	UndoFromEditMenu()
	Common_SleepTime(2)
	RedoFromEditMenu()
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_5_1()
	Local $TestCaseID = "17.5.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^x")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	UnselectDateColumnInListView($hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SleepTime(1)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView17_6_1()
	Local $TestCaseID = "17.6.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^x")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)  			
	If FileExists($sTestResultPath & $TestCaseID & $sJPG_Format) Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_1_1()
	Local $TestCaseID = "18.1.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	OpenMenu("Edit")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_1_2()
	Local $TestCaseID = "18.1.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	MouseClick('Right', 728,502)
	Common_SleepTime(2)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_2_1()
	Local $TestCaseID = "18.2.1" 
	$sCusMsg = 'JPG - Cpoy in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	CopySampleFile()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(9)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)
	Send("^c")
	Common_SleepTime(1)
	Send("^v")
	Common_SleepTime(8)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If FileExists ('C:\Thumbnail view\JPG - Copy.jpg') Then
	;If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_2_3()
	Local $TestCaseID = "18.2.3"
	$sCusMsg = 'JPG - Cpoy in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	CopySampleFile()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(9)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)
	Send("^c")
	Common_SleepTime(1)
	Send("^v")
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_2_12()
	Local $TestCaseID = "18.2.12"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Common_SleepTime(9)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)
	Send("^c")
	Common_SleepTime(1)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	Send("^v")
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_2_13()
	Local $TestCaseID = "18.2.13" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Common_SleepTime(9)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)
	Send("^c")
	Common_SleepTime(1)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	Send("^v")
	Common_SleepTime(6)
	ControlClick("", "", $NoButtonOnReplaceFileDlg)
	Common_SleepTime(3)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_2_14()
	Local $TestCaseID = "18.2.14"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Common_SleepTime(9)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)
	Send("^c")
	Common_SleepTime(1)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	Send("^v")
	Common_SleepTime(6)
	ControlClick("", "", $YesButtonOnReplaceFileDlg)
	Common_SleepTime(3)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_2_15()
	Local $TestCaseID = "18.2.15"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Common_SleepTime(9)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2) 
	Common_SleepTime(1)
	Send("^c")
	Common_SleepTime(1)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	Send("^v")
	Common_SleepTime(6)
	ControlClick("", "", $YestoAllButtonOnReplaceFileDlg)
	Common_SleepTime(8)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_3_1()
	Local $TestCaseID = "18.3.1" 
	$sCusMsg = 'The file JPG in thumbnail'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Common_SleepTime(9)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)
	CopyFormEditMenu()
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	PasteFormEditMenu()
	Common_SleepTime(6)
	Send('{F5}')
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If FileExists('C:\Thumbnail view\JPG.jpg') Then
	;If $bCompareFile Then
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_3_2()
	Local $TestCaseID = "18.3.2" 
	$sCusMsg = 'The file JPG in thumbnail'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Common_SleepTime(9)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True) 
	Common_SleepTime(1)
	Send($CopyContextMenu)
	Common_SleepTime(1)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	MouseClick('Right', 728,502)
	Common_SleepTime(1)
	Send($PasteContextMenu)
	Common_SleepTime(6)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If FileExists('C:\Thumbnail view\JPG.jpg') Then
	;If $bCompareFile Then
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_4_1()
	Local $TestCaseID = "18.4.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^c")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	UndoFromEditMenu()
	Common_SleepTime(6)
	If FileExists($sFunctionFolderPath & "JPG.jpg") Then
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_4_2()
	Local $TestCaseID = "18.4.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^c")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	RedoFromEditMenu()
	Common_SleepTime(6)
	If FileExists($sFunctionFolderPath & "JPG.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_5_1()
	Local $TestCaseID = "18.5.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^c")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	If FileExists($sFunctionFolderPath & "JPG.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView18_5_2()
	Local $TestCaseID = "18.5.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Send("^c")
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("^v")
	Common_SleepTime(6)
	If FileExists($sFunctionFolderPath & "JPG.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_1_1()
	Local $TestCaseID = "19.1.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Local $posThumbnailViewWindow = ControlGetPos($hPMHandle,"",$sThumbnailViewCtrInfo)
	MouseClick("left",$posThumbnailViewWindow[0]+50,$posThumbnailViewWindow[1]+50)
	OpenMenu("Tools")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_1_2()
	Local $TestCaseID = "19.1.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	MouseClick('Right', 728,502)
	Common_SleepTime(2)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_1_3()
	Local $TestCaseID = "19.1.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)	
	OpenMenu("Tools")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_1_4()
	Local $TestCaseID = "19.1.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True) 
	Common_SleepTime(2)	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_1_5()
	Local $TestCaseID = "19.1.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	ControlListView($hPMHandle, "", $hThumbnailView, "Select" ,2 ,3)
	Common_SleepTime(1)	
	OpenMenu("Tools")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_1_6()
	Local $TestCaseID = "19.1.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	ControlListView($hPMHandle, "", $hThumbnailView, "Select" ,2 ,3)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True)
	Common_SleepTime(2)	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_2_1()
	Local $TestCaseID = "19.2.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('123')
	If FileExists($sFunctionFolderPath & "123.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_2_7()
	Local $TestCaseID = "19.2.7" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('Test')
	If FileExists($sFunctionFolderPath & "Test.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_3_1()
	Local $TestCaseID = "19.3.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	Send($RenameContextMenu)
	Common_SleepTime(1)	
	Send("{DELETE}")   ; Rename
	Common_SleepTime(1)
	Send("{ENTER}")
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_3_2()
	Local $TestCaseID = "19.3.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu(' ')
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_3_3()
	Local $TestCaseID = "19.3.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('%$@,')
	Common_SleepTime(4)
	If FileExists($sFunctionFolderPath & "%$@,.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_3_4()
	Local $TestCaseID = "19.3.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('&<>/')
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_3_5()
	Local $TestCaseID = "19.3.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS')
	Common_SleepTime(4)
	If FileExists($sFunctionFolderPath & "SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_3_6()
	Local $TestCaseID = "19.3.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('OCR')
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_4_1()
	Local $TestCaseID = "19.4.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)	
	RenameByToolsMenu('test123')
	Common_SleepTime(2)
	If FileExists($sFunctionFolderPath & "test123.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_4_2()
	Local $TestCaseID = "19.4.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('test456')
	Common_SleepTime(4)
	If FileExists($sFunctionFolderPath & "test456.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_5_1()
	Local $TestCaseID = "19.5.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('test456')
	Common_SleepTime(4)
	UndoFromEditMenu()
	Common_SleepTime(2)
	If FileExists($sFunctionFolderPath & "ReplaceSample.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_5_2()
	Local $TestCaseID = "19.5.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('test456')
	Common_SleepTime(4)
	UndoFromEditMenu()
	Common_SleepTime(2)
	Send("^y")
	Common_SleepTime(2)
	If FileExists($sFunctionFolderPath & "test456.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_6_3()
	Local $TestCaseID = "19.6.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)	
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('123test')
	Common_SleepTime(4)
	If FileExists($sFunctionFolderPath & "123test.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView19_7_1()
	Local $TestCaseID = "19.7.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(2)	
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	RenameByContextMenu('123test456')
	Common_SleepTime(4)
	If FileExists($sFunctionFolderPath & "123test456.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_1_2()
	Local $TestCaseID = "20.1.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	MouseClick('Right', 728,502)
	Common_SleepTime(2)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_1_3()
	Local $TestCaseID = "20.1.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)	
	OpenMenu("Tools")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_1_7()
	Local $TestCaseID = "20.1.7" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,3) 
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)	
	OpenMenu("Tools")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_2_2()
	Local $TestCaseID = "20.2.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	OpenBatchRenameFromContextMenu()	
	BatchRename('ddddddddddddddddddsssssssssssssddddddddddddddddddwwwwwwwwwwwwwww', '0')
	If FileExists($sFunctionFolderPath & "ddddddddddddddddddsssssssssssssddddddddddddddddddwwwwwwwwwwwwwww0000.jpg") And FileExists($sFunctionFolderPath & "ddddddddddddddddddsssssssssssssddddddddddddddddddwwwwwwwwwwwwwww0001.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_2_4()
	Local $TestCaseID = "20.2.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	OpenBatchRenameFromContextMenu()	
	BatchRename('', '0')
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_2_7()
	Local $TestCaseID = "20.2.7" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	OpenBatchRenameFromContextMenu()	
	BatchRename('', '9999')
	If FileExists($sFunctionFolderPath & "9999.jpg") And FileExists($sFunctionFolderPath & "10000.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_2_8()
	Local $TestCaseID = "20.2.8"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & 'ReplaceSample.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	OpenBatchRenameFromContextMenu()	
	BatchRename('', '')
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_3_5()
	Local $TestCaseID = "20.3.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 4 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	OpenBatchRenameFromContextMenu()	
	BatchRename('', '0')
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,3) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "right", True) 	
	OpenBatchRenameFromContextMenu()
	BatchRename('', '0')
	ControlClick('','',$NoButtonOnReplaceFileDlg)
	Common_SleepTime(1)
	ControlClick('','',$NoButtonOnReplaceFileDlg)
	Common_SleepTime(1)
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") And FileExists($sFunctionFolderPath & "0002.jpg") And FileExists($sFunctionFolderPath & "0003.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 
EndFunc

Func ThumbnailView20_3_6()
	Local $TestCaseID = "20.3.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 4 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	OpenBatchRenameFromContextMenu()	
	BatchRename('', '0')
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,3) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "right", True) 	
	OpenBatchRenameFromContextMenu()
	BatchRename('', '0')
	ControlClick('','',$YesButtonOnReplaceFileDlg)
	Common_SleepTime(1)
	ControlClick('','',$YesButtonOnReplaceFileDlg)
	Common_SleepTime(1)
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 
EndFunc

Func ThumbnailView20_3_2()
	Local $TestCaseID = "20.3.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	OpenBatchRenameFromContextMenu()	
	BatchRename('', '0')
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,3,4) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "right", True) 	
	OpenBatchRenameFromContextMenu()
	BatchRename('', '0')
	ControlClick('','',$NoButtonOnReplaceFileDlg)
	Common_SleepTime(1)
	ControlClick('','',$NoButtonOnReplaceFileDlg)
	Common_SleepTime(1)
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") And FileExists($sFunctionFolderPath & "0002.jpg") And FileExists($sFunctionFolderPath & "0003.jpg") And FileExists($sFunctionFolderPath & "0004.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 
EndFunc

Func ThumbnailView20_3_3()
	Local $TestCaseID = "20.3.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	OpenBatchRenameFromContextMenu()	
	BatchRename('', '0')
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,3,4) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "right", True) 	
	OpenBatchRenameFromContextMenu()
	BatchRename('', '0')
	ControlClick('','',$YesButtonOnReplaceFileDlg)
	Common_SleepTime(1)
	ControlClick('','',$YesButtonOnReplaceFileDlg)
	Common_SleepTime(1)
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") And FileExists($sFunctionFolderPath & "0002.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 
EndFunc

Func ThumbnailView20_4_1()
	Local $TestCaseID = "20.4.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	OpenBatchRenameMenu()
	BatchRename('', '0')
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 
EndFunc

Func ThumbnailView20_5_1()
	Local $TestCaseID = "20.5.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	OpenBatchRenameMenu()
	BatchRename('', '0')
	Send("^z")
	Common_SleepTime(2)	
	If FileExists($sFunctionFolderPath & "1.jpg") And FileExists($sFunctionFolderPath & "2.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 
EndFunc

Func ThumbnailView20_5_2()
	Local $TestCaseID = "20.5.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	OpenBatchRenameMenu()
	BatchRename('', '0')
	Send("^z")
	Common_SleepTime(2)	
	Send("^y")
	Common_SleepTime(2)	
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 
EndFunc

Func ThumbnailView20_6_1()
	Local $TestCaseID = "20.6.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)	
	OpenBatchRenameMenu()
	BatchRename('', '0')
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0000-1.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 
EndFunc

Func ThumbnailView20_8_1()
	Local $TestCaseID = "20.8.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)	
	OpenMenu("Tools")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView20_8_2()
	Local $TestCaseID = "20.8.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)	
	OpenBatchRenameMenu()
	BatchRename('', '0')
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
EndFunc

Func ThumbnailView20_9_1()
	Local $TestCaseID = "20.9.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2 
		FileCopy($sSpecialFolderPath & $i & '.jpg', $sFunctionFolderPath, 1)
	Next
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(5)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(2)	
	OpenBatchRenameMenu()
	BatchRename('', '0')
	If FileExists($sFunctionFolderPath & "0000.jpg") And FileExists($sFunctionFolderPath & "0001.jpg") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
EndFunc

Func ThumbnailView21_3_1()
	Local $TestCaseID = "21.3.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True) 
	SelectPrinterFromFileMenu('Office Image Printer')
	Common_SleepTime(3)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle('',''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
	Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView21_3_2()
	Local $TestCaseID = "21.3.2"  
	$sCusMsg = 'Print file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sTIF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	SelectPrinterFromFileMenu('Office Image Printer')
	Common_SleepTime(6)	
	PrintFile($sTestResultPath & $TestCaseID)
	Common_SleepTime(2)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sTIF_Format, $sCorrectResultPath & $TestCaseID & $sTIF_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView21_3_3()
	Local $TestCaseID = "21.3.3" 
	$sCusMsg = 'Print file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail() 
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sTIF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,3)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)	
	SelectPrinterFromFileMenu('Office Image Printer')
	Common_SleepTime(3)	
	PrintFile($sTestResultPath & $TestCaseID)

	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sTIF_Format, $sCorrectResultPath & $TestCaseID & $sTIF_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView21_5_1()
	Local $TestCaseID = "21.5.1"
	$sCusMsg = 'Print file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sTIF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True) 
	SelectPrinterFromContextFileMenu('Office Image Printer')
	Common_SleepTime(3)	
	PrintFile($sTestResultPath & $TestCaseID)
	Common_SleepTime(2)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sTIF_Format, $sCorrectResultPath & $TestCaseID & $sTIF_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView21_5_3()
	Local $TestCaseID = "21.5.3" 
	$sCusMsg = 'Print file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sTIF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	MouseClick('left',1268, 946)    ;Open document pallet.
	Common_SleepTime(2)	
	MouseMove(426, 166)
	MouseDown("left")
	Sleep(300)
	MouseMove(282, 879)
	Sleep(300)
	MouseUp("left")
	Common_SleepTime(2)		
	MouseClick('right',230, 870)
	Common_SleepTime(2)	
	Send('p')
	Common_SleepTime(1)	
	Send('{down}')
	Send('{down}')
	Common_SleepTime(1)	
	Send('{enter}')
	Common_SleepTime(12)
	PrintFile($sTestResultPath & $TestCaseID)
	Common_SleepTime(2)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sTIF_Format, $sCorrectResultPath & $TestCaseID & $sTIF_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView21_7_1()
	Local $TestCaseID = "21.7.1" 
	$sCusMsg = 'Print file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sTIF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	SelectPrinterFromFileMenu('Office Image Printer')
	Common_SleepTime(3)	
	PrintFile($sTestResultPath & $TestCaseID)
	Common_SleepTime(2)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sTIF_Format, $sCorrectResultPath & $TestCaseID & $sTIF_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView21_8_1()
	Local $TestCaseID = "21.8.1" 
	$sCusMsg = 'Print file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sTIF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(1)	
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	SelectPrinterFromFileMenu('Office Image Printer')
	Common_SleepTime(3)	
	PrintFile($sTestResultPath & $TestCaseID)
	Common_SleepTime(2)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sTIF_Format, $sCorrectResultPath & $TestCaseID & $sTIF_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView22_1_2()
	Local $TestCaseID = "22.1.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(1)	
	OpenMenu("Tools")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_2_1()
	Local $TestCaseID = "22.2.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2)
	Common_SleepTime(1)
	OpenMergePDFFromMenu()
	MergePDF($sTestResultPath & $TestCaseID)
	Common_SleepTime(5)	
	If FileExists($sTestResultPath & $TestCaseID & $sPDF_Format) Then
	;Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sPDF_Format, $sCorrectResultPath & $TestCaseID & $sPDF_Format)  			
	;If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_2_3()
	Local $TestCaseID = "22.2.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	FileCopy($sSpecialFolderPath & '6.jpg', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,4)
	Common_SleepTime(1)
	OpenMergePDFFromMenu()
	Send("{ENTER}")
	Common_SleepTime(3)
	MergePDF($sTestResultPath & $TestCaseID)
	Common_SleepTime(5)	
	If FileExists($sTestResultPath & $TestCaseID & $sPDF_Format) Then
;	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sPDF_Format, $sCorrectResultPath & $TestCaseID & $sPDF_Format)  			
;	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_2_6()
	Local $TestCaseID = "22.2.6"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	OpenMergePDFFromMenu()
	Common_SleepTime(3)
	WinWaitActive ($CommonWindowCtrlInfro, '', 5)
	WinActivate($CommonWindowCtrlInfro)
	ControlFocus('[Class:#32770]', 'FolderView', 1152)
	Common_SleepTime(1)
	Send('{DEL}')   ;Empty file name
	Common_SleepTime(1)
	ControlClick('[Class:#32770]', 'FolderView', 'Button2')   ;OK button
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,WinGetHandle('')) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}') 
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}') 
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}') 
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_2_7()
	Local $TestCaseID = "22.2.7"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	OpenMergePDFFromMenu()
	Common_SleepTime(3)
	MergePDF(' ')
	Common_SleepTime(1)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,WinGetHandle('')) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}') 
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}') 
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}') 
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_2_12()
	Local $TestCaseID = "22.2.12"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	OpenMergePDFFromMenu()
	Common_SleepTime(3)
	MergePDF($sSpecialFolderPath & '1.pdf')
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,WinGetHandle('')) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}') 
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}') 
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}') 
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_3_1()
	Local $TestCaseID = "22.3.1"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	FileCopy($sSpecialFolderPath & 'AutumnView_Passwod123.PDF', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,4)
	OpenMergePDFFromMenu()
	Common_SleepTime(3)
	MergePDF($sTestResultPath & $TestCaseID)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}') 
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}') 
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}') 
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_3_2()
	Local $TestCaseID = "22.3.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	FileCopy($sSpecialFolderPath & 'AutumnView_Passwod123.PDF', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,4)
	OpenMergePDFFromMenu()
	Common_SleepTime(3)
	MergePDF($sTestResultPath & $TestCaseID)
	Send('456')
	Common_SleepTime(1)
	Send('{ENTER}')
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}') 
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}') 
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}') 
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_3_5()
	Local $TestCaseID = "22.3.5" 
	$sCusMsg = 'The image is thumnail, two files selected'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 5
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	FileCopy($sSpecialFolderPath & 'AutumnView_Passwod123.PDF', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,4)
	OpenMergePDFFromMenu()
	Common_SleepTime(3)
	MergePDF($sTestResultPath & $TestCaseID)
	ControlClick('','','Button2')
	Common_SleepTime(1)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_5_9()
	Local $TestCaseID = "22.5.9" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	ClickOKOnSplitPDF()
	Local $bCompareFile1 = Common_CompareFile($PMFolder & 'File-0001' & $sPDF_Format, $sCorrectResultPath & 'File-0001' & $sPDF_Format)  		
	Local $bCompareFile2 = Common_CompareFile($PMFolder & 'File-0002' & $sPDF_Format, $sCorrectResultPath & 'File-0002' & $sPDF_Format) 
	Local $bCompareFile3 = Common_CompareFile($PMFolder & 'File-0003' & $sPDF_Format, $sCorrectResultPath & 'File-0003' & $sPDF_Format) 
	Local $bCompareFile4 = Common_CompareFile($PMFolder & 'File-0004' & $sPDF_Format, $sCorrectResultPath & 'File-0004' & $sPDF_Format) 
	Local $bCompareFile5 = Common_CompareFile($PMFolder & 'File-0005' & $sPDF_Format, $sCorrectResultPath & 'File-0005' & $sPDF_Format) 
	;If $bCompareFile1 And $bCompareFile2 And $bCompareFile3 And $bCompareFile4 And $bCompareFile5 Then	
	If FileExists($PMFolder & 'File-0001' & $sPDF_Format) And FileExists($PMFolder & 'File-0002' & $sPDF_Format) And FileExists($PMFolder & 'File-0003' & $sPDF_Format)  And FileExists($PMFolder & 'File-0004' & $sPDF_Format)  And FileExists($PMFolder & 'File-0005' & $sPDF_Format)  And FileExists($PMFolder & 'File-0001' & $sPDF_Format) Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_5_11()
	Local $TestCaseID = "22.5.11"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFPrefixName('ssssssssssssdddddddd')
	ClickOKOnSplitPDF()
	Local $bCompareFile1 = Common_CompareFile($PMFolder & 'ssssssssssssdddddddd-0001' & $sPDF_Format, $sCorrectResultPath & 'ssssssssssssdddddddd-0001' & $sPDF_Format)  		
	Local $bCompareFile2 = Common_CompareFile($PMFolder & 'ssssssssssssdddddddd-0002' & $sPDF_Format, $sCorrectResultPath & 'ssssssssssssdddddddd-0002' & $sPDF_Format) 
	Local $bCompareFile3 = Common_CompareFile($PMFolder & 'ssssssssssssdddddddd-0003' & $sPDF_Format, $sCorrectResultPath & 'ssssssssssssdddddddd-0003' & $sPDF_Format) 
	Local $bCompareFile4 = Common_CompareFile($PMFolder & 'ssssssssssssdddddddd-0004' & $sPDF_Format, $sCorrectResultPath & 'ssssssssssssdddddddd-0004' & $sPDF_Format) 
	Local $bCompareFile5 = Common_CompareFile($PMFolder & 'ssssssssssssdddddddd-0005' & $sPDF_Format, $sCorrectResultPath & 'ssssssssssssdddddddd-0005' & $sPDF_Format) 
	If FileExists($PMFolder & 'ssssssssssssdddddddd-0001' & $sPDF_Format) And FileExists($PMFolder & 'ssssssssssssdddddddd-0002' & $sPDF_Format) And FileExists($PMFolder & 'ssssssssssssdddddddd-0003' & $sPDF_Format) And FileExists($PMFolder & 'ssssssssssssdddddddd-0004' & $sPDF_Format) And FileExists($PMFolder & 'ssssssssssssdddddddd-0005' & $sPDF_Format) Then
	;If $bCompareFile1 And $bCompareFile2 And $bCompareFile3 And $bCompareFile4 And $bCompareFile5 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_5_13()
	Local $TestCaseID = "22.5.13"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFPrefixName('')
	ClickOKOnSplitPDF()
	Local $bCompareFile1 = Common_CompareFile($PMFolder & '0001' & $sPDF_Format, $sCorrectResultPath & '0001' & $sPDF_Format)  		
	Local $bCompareFile2 = Common_CompareFile($PMFolder & '0002' & $sPDF_Format, $sCorrectResultPath & '0002' & $sPDF_Format) 
	Local $bCompareFile3 = Common_CompareFile($PMFolder & '0003' & $sPDF_Format, $sCorrectResultPath & '0003' & $sPDF_Format) 
	Local $bCompareFile4 = Common_CompareFile($PMFolder & '0004' & $sPDF_Format, $sCorrectResultPath & '0004' & $sPDF_Format) 
	Local $bCompareFile5 = Common_CompareFile($PMFolder & '0005' & $sPDF_Format, $sCorrectResultPath & '0005' & $sPDF_Format) 
	If FileExists($PMFolder & '0001' & $sPDF_Format) And FileExists($PMFolder & '0002' & $sPDF_Format) And FileExists($PMFolder & '0003' & $sPDF_Format)  And FileExists($PMFolder & '0004' & $sPDF_Format)  And FileExists($PMFolder & '0005' & $sPDF_Format) Then
	;If $bCompareFile1 And $bCompareFile2 And $bCompareFile3 And $bCompareFile4 And $bCompareFile5 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_5_15()
	Local $TestCaseID = "22.5.15" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFStartNumber('0')
	ClickOKOnSplitPDF()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
		Send('{ESC}')	
		WinActivate($CommonWindowCtrlInfro)	
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_5_16()
	Local $TestCaseID = "22.5.16" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFStartNumber('10000')
	ClickOKOnSplitPDF()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
		Send('{ESC}')	
		WinActivate($CommonWindowCtrlInfro)	
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_5_17()
	Local $TestCaseID = "22.5.17"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFStartNumber('9999')
	ClickOKOnSplitPDF()
	Local $bCompareFile1 = Common_CompareFile($PMFolder & 'File-9999' & $sPDF_Format, $sCorrectResultPath & 'File-0001' & $sPDF_Format)  		
	Local $bCompareFile2 = Common_CompareFile($PMFolder & 'File-10000' & $sPDF_Format, $sCorrectResultPath & 'File-10000' & $sPDF_Format) 
	Local $bCompareFile3 = Common_CompareFile($PMFolder & 'File-10001' & $sPDF_Format, $sCorrectResultPath & 'File-10001' & $sPDF_Format) 
	Local $bCompareFile4 = Common_CompareFile($PMFolder & 'File-10002' & $sPDF_Format, $sCorrectResultPath & 'File-10002' & $sPDF_Format) 
	Local $bCompareFile5 = Common_CompareFile($PMFolder & 'File-10003' & $sPDF_Format, $sCorrectResultPath & 'File-10003' & $sPDF_Format) 
	If FileExists($PMFolder & 'File-9999' & $sPDF_Format) And FileExists($PMFolder & 'File-10000' & $sPDF_Format) And FileExists($PMFolder & 'File-10001' & $sPDF_Format)  And FileExists($PMFolder & 'File-10002' & $sPDF_Format)  And FileExists($PMFolder & 'File-10003' & $sPDF_Format) Then
	;If $bCompareFile1 And $bCompareFile2 And $bCompareFile3 And $bCompareFile4 And $bCompareFile5 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_5_18()
	Local $TestCaseID = "22.5.18" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFStartNumber('')
	ClickOKOnSplitPDF()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
		Send('{ESC}')	
		WinActivate($CommonWindowCtrlInfro)	
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_5_21()
	Local $TestCaseID = "22.5.21"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	ClickOKOnSplitPDF()
	_GUICtrlListView_ClickItem($hThumbnailView,1, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	ClickOKOnSplitPDF()	
	Local $bCompareFile1 = Common_CompareFile($PMFolder & 'File-0006' & $sPDF_Format, $sCorrectResultPath & 'File-0006' & $sPDF_Format)  		
	Local $bCompareFile2 = Common_CompareFile($PMFolder & 'File-0007' & $sPDF_Format, $sCorrectResultPath & 'File-0007' & $sPDF_Format) 
	Local $bCompareFile3 = Common_CompareFile($PMFolder & 'File-0008' & $sPDF_Format, $sCorrectResultPath & 'File-0008' & $sPDF_Format) 
	Local $bCompareFile4 = Common_CompareFile($PMFolder & 'File-0009' & $sPDF_Format, $sCorrectResultPath & 'File-0009' & $sPDF_Format) 
	Local $bCompareFile5 = Common_CompareFile($PMFolder & 'File-0010' & $sPDF_Format, $sCorrectResultPath & 'File-0010' & $sPDF_Format) 
	If FileExists($PMFolder & 'File-0001' & $sPDF_Format) And FileExists($PMFolder & 'File-0002' & $sPDF_Format) And FileExists($PMFolder & 'File-0003' & $sPDF_Format)  And FileExists($PMFolder & 'File-0004' & $sPDF_Format)  And FileExists($PMFolder & 'File-0005' & $sPDF_Format) Then
	;If $bCompareFile1 And $bCompareFile2 And $bCompareFile3 And $bCompareFile4 And $bCompareFile5 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_6_2()
	Local $TestCaseID = "22.6.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'pssword is 123.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	ClickOKOnSplitPDF()
	Send('456')
	Send('{ENTER}')
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle(''))
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then
		Send('{ESC}')		
		WinActivate($CommonWindowCtrlInfro)	
		Send('{ESC}')		
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)	
	Send('{ESC}')	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_6_4()
	Local $TestCaseID = "22.6.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'pssword is 123.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFPrefixName('PW')
	ClickOKOnSplitPDF()
	Send('123')
	Common_SleepTime(1)
	Send('{ENTER}')
	Common_SleepTime(5)
	Local $bCompareFile1 = Common_CompareFile($PMFolder & 'PW-0001' & $sPDF_Format, $sCorrectResultPath & 'PW-0001' & $sPDF_Format)  		
	Local $bCompareFile2 = Common_CompareFile($PMFolder & 'PW-0002' & $sPDF_Format, $sCorrectResultPath & 'PW-0002' & $sPDF_Format) 
	Local $bCompareFile3 = Common_CompareFile($PMFolder & 'PW-0003' & $sPDF_Format, $sCorrectResultPath & 'PW-0003' & $sPDF_Format) 
	Local $bCompareFile4 = Common_CompareFile($PMFolder & 'PW-0004' & $sPDF_Format, $sCorrectResultPath & 'PW-0004' & $sPDF_Format) 
	Local $bCompareFile5 = Common_CompareFile($PMFolder & 'PW-0005' & $sPDF_Format, $sCorrectResultPath & 'PW-0005' & $sPDF_Format) 
	If FileExists($PMFolder & 'PW-0001' & $sPDF_Format) And FileExists($PMFolder & 'PW-0002' & $sPDF_Format) And FileExists($PMFolder & 'PW-0003' & $sPDF_Format)  And FileExists($PMFolder & 'PW-0004' & $sPDF_Format)  And FileExists($PMFolder & 'PW-0005' & $sPDF_Format) Then
	;If $bCompareFile1 And $bCompareFile2 And $bCompareFile3 And $bCompareFile4 And $bCompareFile5 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_6_5()
	Local $TestCaseID = "22.6.5" 
	$sCusMsg = 'The image is protect PDF thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'pssword is 123.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFPrefixName('PW')
	ClickOKOnSplitPDF()
	ControlClick('','','Button2')   ;Click cancel button.
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView22_7_1()
	Local $TestCaseID = "22.7.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	OpenMergePDFFromMenu()
	MergePDF($sTestResultPath & $TestCaseID)
	Common_SleepTime(4)	
	If FileExists($sTestResultPath & $TestCaseID & $sPDF_Format) Then
	;Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sPDF_Format, $sCorrectResultPath & $TestCaseID & $sPDF_Format)  			
	;If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_8_1()
	Local $TestCaseID = "22.8.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFPrefixName($TestCaseID)
	ClickOKOnSplitPDF()
	Local $bCompareFile1 = Common_CompareFile($PMFolder & $TestCaseID & '-0001' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0001' & $sPDF_Format)  		
	Local $bCompareFile2 = Common_CompareFile($PMFolder & $TestCaseID & '-0002' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0002' & $sPDF_Format) 
	Local $bCompareFile3 = Common_CompareFile($PMFolder & $TestCaseID & '-0003' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0003' & $sPDF_Format) 
	Local $bCompareFile4 = Common_CompareFile($PMFolder & $TestCaseID & '-0004' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0004' & $sPDF_Format) 
	Local $bCompareFile5 = Common_CompareFile($PMFolder & $TestCaseID & '-0005' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0005' & $sPDF_Format) 
	If FileExists($PMFolder & '22.8.1-0001' & $sPDF_Format) And FileExists($PMFolder & '22.8.1-0002' & $sPDF_Format) And FileExists($PMFolder & '22.8.1-0003' & $sPDF_Format)  And FileExists($PMFolder & '22.8.1-0004' & $sPDF_Format)  And FileExists($PMFolder & '22.8.1-0005' & $sPDF_Format) Then
	;If $bCompareFile1 And $bCompareFile2 And $bCompareFile3 And $bCompareFile4 And $bCompareFile5 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_9_1()
	Local $TestCaseID = "22.9.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	For $i = 1 to 2
		FileCopy($sSpecialFolderPath & $i & '.pdf', $sFunctionFolderPath, 1)
	Next	
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(1)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)
	Common_SleepTime(1)
	OpenMergePDFFromMenu()
	MergePDF($sTestResultPath & $TestCaseID)
	Common_SleepTime(4)	
	If FileExists($sTestResultPath & $TestCaseID & $sPDF_Format) Then
	;Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sPDF_Format, $sCorrectResultPath & $TestCaseID & $sPDF_Format)  			
	;If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView22_10_1()
	Local $TestCaseID = "22.10.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(3)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left", True)
	Common_SleepTime(1)
	OpenSplitPDFFromMenu()
	SetSplitPDFPrefixName($TestCaseID)
	ClickOKOnSplitPDF()
	Local $bCompareFile1 = Common_CompareFile($PMFolder & $TestCaseID & '-0001' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0001' & $sPDF_Format)  		
	Local $bCompareFile2 = Common_CompareFile($PMFolder & $TestCaseID & '-0002' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0002' & $sPDF_Format) 
	Local $bCompareFile3 = Common_CompareFile($PMFolder & $TestCaseID & '-0003' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0003' & $sPDF_Format) 
	Local $bCompareFile4 = Common_CompareFile($PMFolder & $TestCaseID & '-0004' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0004' & $sPDF_Format) 
	Local $bCompareFile5 = Common_CompareFile($PMFolder & $TestCaseID & '-0005' & $sPDF_Format, $sCorrectResultPath& $TestCaseID & '-0005' & $sPDF_Format) 
	If FileExists($PMFolder & '22.10.1-0001' & $sPDF_Format) And FileExists($PMFolder & '22.10.1-0002' & $sPDF_Format) And FileExists($PMFolder & '22.10.1-0003' & $sPDF_Format)  And FileExists($PMFolder & '22.10.1-0004' & $sPDF_Format)  And FileExists($PMFolder & '22.10.1-0005' & $sPDF_Format) Then
	;If $bCompareFile1 And $bCompareFile2 And $bCompareFile3 And $bCompareFile4 And $bCompareFile5 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_1_1()
	Local $TestCaseID = "23.1.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Local $posThumbnailViewWindow = ControlGetPos($hPMHandle,"",$sThumbnailViewCtrInfo)
	MouseClick("left",$posThumbnailViewWindow[0]+50,$posThumbnailViewWindow[1]+50)
	OpenMenu("Tools")
	OpenMenu("Edit")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_1_2()
	Local $TestCaseID = "23.1.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	MouseClick('Right', 728,502)
	Common_SleepTime(2)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_2_1()
	Local $TestCaseID = "23.2.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right", True)
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button2" )   ; Click "No" button.
	Common_SleepTime(2)
	If FileExists($sFunctionFolderPath & "1.pdf") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_2_2()
	Local $TestCaseID = "23.2.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right", True)
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "No" button.
	Common_SleepTime(2)
	If FileExists($sFunctionFolderPath & "1.pdf") Then
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_2_3()
	Local $TestCaseID = "23.2.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right", True)
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "No" button.
	Common_SleepTime(2)
	Send("^z")
	Common_SleepTime(4)
	If FileExists($sFunctionFolderPath & "1.pdf") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_2_4()
	Local $TestCaseID = "23.2.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right", True)
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "No" button.
	Common_SleepTime(2)
	Send("^z")
	Common_SleepTime(4)
	Send("^y")
	Common_SleepTime(4)
	If FileExists($sFunctionFolderPath & "1.pdf") Then
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_2_5()
	Local $TestCaseID = "23.2.5" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right", True)
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "yes" button.
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If FileExists($sFunctionFolderPath & "1.pdf") == 0 Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_3_2()
	Local $TestCaseID = "23.3.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left")
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,0,1) 
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right")
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "yes" button.
	Common_SleepTime(2)
	If FileExists($sFunctionFolderPath & "1.pdf") == 0 And FileExists($sFunctionFolderPath & "2.pdf") == 0 Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_3_3()
	Local $TestCaseID = "23.3.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left")
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,0,1) 
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right")
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "yes" button.
	Common_SleepTime(2)
	Send("^z")
	Common_SleepTime(3)
	If FileExists($sFunctionFolderPath & "1.pdf") == 1 And FileExists($sFunctionFolderPath & "2.pdf") == 1 Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_3_4()
	Local $TestCaseID = "23.3.4"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left")
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,0,1) 
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right")
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "yes" button.
	Common_SleepTime(2)
	Send("^z")
	Common_SleepTime(3)
	Send("^y")
	Common_SleepTime(3)
	If FileExists($sFunctionFolderPath & "1.pdf") == 0 And FileExists($sFunctionFolderPath & "2.pdf") == 0 Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_3_5()
	Local $TestCaseID = "23.3.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	DeleteLastTimePrintFile($sTestResultPath & $TestCaseID & $sPDF_Format)
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left")
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,0,1) 
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right")
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "yes" button.
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If FileExists($sFunctionFolderPath & "1.pdf") == 0 And FileExists($sFunctionFolderPath & "2.pdf") == 0 Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_5_1()
	Local $TestCaseID = "23.5.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left")
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,0,1) 
	Common_SleepTime(2)
	DeleteFromEditMenu()
	ControlClick('', '' , "Button1" )   ; Click "yes" button.
	Common_SleepTime(4)
	If FileExists($sFunctionFolderPath & "1.pdf") == 0 And FileExists($sFunctionFolderPath & "2.pdf") == 0 Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_6_1()
	Local $TestCaseID = "23.6.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(4)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(4)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left")
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,0,1) 
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right")
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "yes" button.
	Common_SleepTime(2)
	If FileExists($sFunctionFolderPath & "1.pdf") == 0 And FileExists($sFunctionFolderPath & "2.pdf") == 0 Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView23_7_1()
	Local $TestCaseID = "23.7.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(4)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(4)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left")
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,0,1) 
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right")
	Common_SleepTime(2)
	Send($DeleteContextMenu)
	Common_SleepTime(2)
	WinActivate($CommonWindowCtrlInfro)
	Common_SleepTime(1)
	ControlClick('', '' , "Button1" )   ; Click "yes" button.
	Common_SleepTime(2)
	If FileExists($sFunctionFolderPath & "1.pdf") == 0 And FileExists($sFunctionFolderPath & "2.pdf") == 0 Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView24_2_2()
	Local $TestCaseID = "24.2.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	_ClipBoard_Empty()
	FileCopy($sSpecialFolderPath &'1.pdf', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "left")
	Common_SleepTime(1)
	Send("^c")
	Common_SleepTime(1)
	Send("^v")	
	Common_SleepTime(4)
	_GUICtrlListView_ClickItem($hThumbnailView,0, "right")
	Common_SleepTime(2)
	Send($RefreshContextMenu)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	;Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	;If $bCompareFile Then	
	If FileExists($sFunctionFolderPath & "1 - Copy.pdf") Then
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView24_3_1()
	Local $TestCaseID = "24.3.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	MouseMove(391, 369)
	MouseDown("left")
	Sleep(300)
	MouseMove(202, 272)
	Sleep(300)
	MouseUp("left")
	Common_SleepTime(1)	
	OpenMenu("View")
	Send($RefreshMenu)
	Common_SleepTime(2)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView24_3_2()
	Local $TestCaseID = "24.3.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	MouseMove(391, 369)
	MouseDown("left")
	Sleep(300)
	MouseMove(202, 272)
	Sleep(300)
	MouseUp("left")
	Common_SleepTime(1)	
	Send("{F5}")
	Common_SleepTime(2)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView24_5_1()
	Local $TestCaseID = "24.5.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	CopySampleFile()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(10)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	MouseMove(274, 129)
	MouseDown("left")
	Sleep(300)
	MouseMove(266, 275)
	Sleep(300)
	MouseUp("left")
	Common_SleepTime(1)	
	Send("{F5}")
	Common_SleepTime(2)	
	UnselectDateColumnInListView($hPMHandle)
	Common_SleepTime(1)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView25_2_1()
	Local $TestCaseID = "25.2.1" 
	$sCusMsg = 'All files is selected in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True) 
	Common_SleepTime(2)	
	SelectAllFromContextMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView25_2_2()
	Local $TestCaseID = "25.2.2" 
	$sCusMsg = 'All files is selected in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(2)	
	SelectAllFilesFromMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView25_2_3()
	Local $TestCaseID = "25.2.3"
	$sCusMsg = 'All files is selected in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)	
	Send("{CTRLDOWN}")
	For $i = 1 to 9
		_GUICtrlListView_ClickItem($hThumbnailView, $i, "left", True) 
		Common_SleepTime(1)	
	Next
	Send("{CTRLup}")
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView25_2_4()
	Local $TestCaseID = "25.2.4" 
	$sCusMsg = '5 files selected in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)	
	Send("{SHIFTDOWN}")
	_GUICtrlListView_ClickItem($hThumbnailView,4, "left", True) 
	Common_SleepTime(1)	
	Send("{SHIFTUP}")
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView25_2_6()
	Local $TestCaseID = "25.2.6" 
	$sCusMsg = 'All files is selected in thumbnial'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)	
	Send("^a")
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView25_3_1()
	Local $TestCaseID = "25.3.1"
	$sCusMsg = 'All files is selected in list view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)	
	UnselectDateColumnInListView($hPMHandle)
	Common_SleepTime(2)	
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(2)	
	SelectAllFilesFromMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView25_3_2()
	Local $TestCaseID = "25.3.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(2)	
	UnselectDateColumnInListView($hPMHandle)
	Common_SleepTime(2)	
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True) 
	Common_SleepTime(2)	
	SelectAllFilesFromMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_1_1()
	Local $TestCaseID = "26.1.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	MouseClick('left',432, 260)
	OpenMenu("File")
	Common_SleepTime(1)	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_1_5()
	Local $TestCaseID = "26.1.5" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	OpenMenu("File")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_1_6()
	Local $TestCaseID = "26.1.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_1_7()
	Local $TestCaseID = "26.1.7" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	OpenMenu("File")
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_1_8()
	Local $TestCaseID = "26.1.8"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	FileCopy($sSpecialFolderPath &'2.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True) 
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1) 
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_2_1()
	Local $TestCaseID = "26.2.1"
	$sCusMsg = 'The title is "1.jpg"'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	Send("sss")
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_3_1()
	Local $TestCaseID = "26.3.1" 
	$sCusMsg = '"Add/remove Authors" dialog'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ClicKAddAuthorButton()
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_3_3()
	Local $TestCaseID = "26.3.3"
	$sCusMsg = 'The authors name is "sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ClicKAddAuthorButton()
	
	;Set author name
	AddAuthor('ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss')
	
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_3_7()
	Local $TestCaseID = "26.3.7" 
	$sCusMsg = 'The authors name is blank'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ClicKAddAuthorButton()
	
	;Set author name
	AddAuthor('1')
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ClicKAddAuthorButton()
	ControlClick($CommonWindowCtrlInfro, "", 1031)   ;Add or remove button.
	Common_SleepTime(1)
	ControlCommand($CommonWindowCtrlInfro, "", 1058, "SelectString" , "1")
	Common_SleepTime(1)	
	ControlClick($CommonWindowCtrlInfro, "", 1057)   ; Click remove button.
	Common_SleepTime(1)	
	ControlClick($CommonWindowCtrlInfro, "", 1)   ; Click ok button.
	Common_SleepTime(1)	
	ControlClick($CommonWindowCtrlInfro, "", 1)   ; Click ok button.	
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)	
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_4_1()
	Local $TestCaseID = "26.4.1"
	$sCusMsg = '"Add/remove Keywords" dialog'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ClicKAddKeywordButton()
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_4_3()
	Local $TestCaseID = "26.4.3" 
	$sCusMsg = 'keywords is "sssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ClicKAddKeywordButton()
	AddKeyword('ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss')
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_4_7()
	Local $TestCaseID = "26.4.7" 
	$sCusMsg = 'The keyword is blank'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ClicKAddKeywordButton()
	
	;Set author name
	AddKeyword('1')
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ClicKAddKeywordButton()
	Common_SleepTime(1)
	ControlCommand($CommonWindowCtrlInfro, "", 1058, "SelectString" , "1")
	Common_SleepTime(1)	
	ControlClick($CommonWindowCtrlInfro, "", 1057)   ; Click remove button.
	Common_SleepTime(1)	
	ControlClick($CommonWindowCtrlInfro, "", 1)   ; Click ok button.
	Common_SleepTime(1)	
	ControlClick($CommonWindowCtrlInfro, "", 1)   ; Click ok button.	
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)	
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_5_2()
	Local $TestCaseID = "26.5.2"
	$sCusMsg = 'The memo is sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	
	; Add memo
	ControlFocus($CommonWindowCtrlInfro,"",1023)
	ControlSend($CommonWindowCtrlInfro,"",1023, $sCusMsg)
	Common_SleepTime(8)
	ControlClick($CommonWindowCtrlInfro,"",1)   ; Click "OK" button.	
	Common_SleepTime(1)	
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	If ControlGetText($h, '', 1023) == $sCusMsg Then
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	#cs
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	#ce
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_6_1()
	Local $TestCaseID = "26.6.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_7_1()
	Local $TestCaseID = "26.7.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_7_2()
	Local $TestCaseID = "26.7.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_7_6()
	Local $TestCaseID = "26.7.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_7_7()
	Local $TestCaseID = "26.7.7" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_8_1()
	Local $TestCaseID = "26.8.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ControlClick($CommonWindowCtrlInfro,"",1028)   ; Clicl record button.
	Common_SleepTime(4)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_8_2()
	Local $TestCaseID = "26.8.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ControlClick($CommonWindowCtrlInfro,"",1028)   ; Clicl record button.
	Common_SleepTime(4)
	ControlClick("Audio Recorder", "", 2464)   ; record.
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_1.jpg", $h)
	Common_SleepTime(10)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_2.jpg", $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & '_1.jpg', $sCorrectResultPath & $TestCaseID & '_2.jpg')  					
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_8_3()
	Local $TestCaseID = "26.8.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ControlClick($CommonWindowCtrlInfro,"",1028)   ; Clicl record button.
	Common_SleepTime(4)
	ControlClick($CommonWindowCtrlInfro, "", 2464)   ; record.
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_SleepTime(10)
	ControlClick($CommonWindowCtrlInfro, "", 2462)   ; pause.
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  					
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_8_4()
	Local $TestCaseID = "26.8.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ControlClick($CommonWindowCtrlInfro,"",1028)   ; Clicl record button.
	Common_SleepTime(4)
	ControlClick($CommonWindowCtrlInfro, "", 2464)   ; record.
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_SleepTime(10)
	ControlClick($CommonWindowCtrlInfro, "", 2463)   ; stop.
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  					
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
		  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase) 
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_8_6()
	Local $TestCaseID = "26.8.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	ControlClick($CommonWindowCtrlInfro,"",1028)   ; Clicl record button.
	Common_SleepTime(4)
	ControlClick($CommonWindowCtrlInfro, "", 2464)   ; record.
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_SleepTime(10)
	ControlClick($CommonWindowCtrlInfro, "", 2462)   ; pause.
	Common_SleepTime(2)
	ControlClick($CommonWindowCtrlInfro, "", 2464)   ; record.
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_1.jpg", $h)
	Common_SleepTime(10)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_1.jpg", $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & '_1.jpg', $sCorrectResultPath & $TestCaseID & '_2.jpg')  					
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_9_1()
	Local $TestCaseID = "26.9.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	ControlClick($CommonWindowCtrlInfro,"",1027)   ; play
	Common_SleepTime(2)	
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_9_2()
	Local $TestCaseID = "26.9.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	ControlClick($CommonWindowCtrlInfro,"",1027)   ; play
	Common_SleepTime(6)	
	ControlClick($CommonWindowCtrlInfro,"",2471)   ; pause
	Common_SleepTime(1)		
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_9_3()
	Local $TestCaseID = "26.9.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	ControlClick($CommonWindowCtrlInfro,"",1027)   ; play
	Common_SleepTime(6)	
	ControlClick($CommonWindowCtrlInfro,"",2472)   ; stop
	Common_SleepTime(1)		
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_10_1()
	Local $TestCaseID = "26.10.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	AddAudioMemo()
	ControlClick($CommonWindowCtrlInfro,"",1026)   ; Delete audio memo.
	Common_SleepTime(1)	
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_11_1()
	Local $TestCaseID = "26.11.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'WAV.wav', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_11_2()
	Local $TestCaseID = "26.11.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'AVI.avi', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_13_1()
	Local $TestCaseID = "26.13.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	FileContenTab()
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_13_2()
	Local $TestCaseID = "26.13.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'DOC.doc', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(16)
	WinActivate($hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	FileContenTab()
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_13_3()
	Local $TestCaseID = "26.13.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'EXE.exe', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	FileContenTab()
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_13_5()
	Local $TestCaseID = "26.13.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'EXIFTIF.tif', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SleepTime(4)
	WinActivate($hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	FileEXIFTab()
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_15_1()
	Local $TestCaseID = "26.15.1" 
	$sCusMsg = 'file propertis dialog'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo) 
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc

Func ThumbnailView26_16_1()
	Local $TestCaseID = "26.16.1"
	$sCusMsg = 'file propertis dialog'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath &'1.jpg', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar) 
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	Send($PropertiesMenu)
	Common_SleepTime(2)
	Local $h = WinGetHandle($CommonWindowCtrlInfro)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $h)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Send('{ESC}')
		WinActivate($CommonWindowCtrlInfro)
		Send('{ESC}')
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Send('{ESC}')
	WinActivate($CommonWindowCtrlInfro)
	Send('{ESC}')
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0
EndFunc
